<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>MRSL DecompUtil Library: include/decomp_basis/data_utils.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">MRSL DecompUtil Library
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">An implementaion of convex decomposition over point cloud</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_0ea7c0ecff050f14fbfcb8a22f95278f.html">decomp_basis</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">data_utils.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provide a few widely used function for basic type.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="data__type_8h_source.html">decomp_basis/data_type.h</a>&gt;</code><br />
</div>
<p><a href="data__utils_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a79960a9e7c7bad6ec5641ed1729ad8d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79960a9e7c7bad6ec5641ed1729ad8d0"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="data__utils_8h.html#a79960a9e7c7bad6ec5641ed1729ad8d0">transform_vec3</a>&#160;&#160;&#160;<a class="el" href="data__utils_8h.html#ac3745ddcc3002193bbcd5caab64cd1df">transform_vec</a>&lt;<a class="el" href="data__type_8h.html#afd53e073786661e24985c48b4ef92fcb">Vec3f</a>, <a class="el" href="data__type_8h.html#a99980a710976449f0a9d3d2ae8b8be87">Aff3f</a>&gt;</td></tr>
<tr class="memdesc:a79960a9e7c7bad6ec5641ed1729ad8d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transform all entries in a vector using given TF. <br /></td></tr>
<tr class="separator:a79960a9e7c7bad6ec5641ed1729ad8d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a188bab5f6177f4853e7bff0d5c61cfe6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a188bab5f6177f4853e7bff0d5c61cfe6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="data__utils_8h.html#a188bab5f6177f4853e7bff0d5c61cfe6">total_distance3f</a>&#160;&#160;&#160;<a class="el" href="data__utils_8h.html#a3f82ae87bcf143405fd986be6ca44a68">total_distance</a>&lt;<a class="el" href="data__type_8h.html#afd53e073786661e24985c48b4ef92fcb">Vec3f</a>&gt;</td></tr>
<tr class="memdesc:a188bab5f6177f4853e7bff0d5c61cfe6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sum up total distance for Vec3f. <br /></td></tr>
<tr class="separator:a188bab5f6177f4853e7bff0d5c61cfe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4035bd3287a21e2e0a8e7a5a0357f5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca4035bd3287a21e2e0a8e7a5a0357f5"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="data__utils_8h.html#aca4035bd3287a21e2e0a8e7a5a0357f5">total_distance3i</a>&#160;&#160;&#160;<a class="el" href="data__utils_8h.html#a3f82ae87bcf143405fd986be6ca44a68">total_distance</a>&lt;<a class="el" href="data__type_8h.html#a27cc7cd350b4919c77a6803461feb516">Vec3i</a>&gt;</td></tr>
<tr class="memdesc:aca4035bd3287a21e2e0a8e7a5a0357f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sum up total distance for Vec3i. <br /></td></tr>
<tr class="separator:aca4035bd3287a21e2e0a8e7a5a0357f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ac3745ddcc3002193bbcd5caab64cd1df"><td class="memTemplParams" colspan="2"><a class="anchor" id="ac3745ddcc3002193bbcd5caab64cd1df"></a>
template&lt;class T , class TF &gt; </td></tr>
<tr class="memitem:ac3745ddcc3002193bbcd5caab64cd1df"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="data__type_8h.html#a30c607180de5bc1b7c30f5cbaf9b188b">vec_E</a>&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="data__utils_8h.html#ac3745ddcc3002193bbcd5caab64cd1df">transform_vec</a> (const <a class="el" href="data__type_8h.html#a30c607180de5bc1b7c30f5cbaf9b188b">vec_E</a>&lt; T &gt; &amp;t, const TF &amp;tf)</td></tr>
<tr class="memdesc:ac3745ddcc3002193bbcd5caab64cd1df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template for transforming a vector. <br /></td></tr>
<tr class="separator:ac3745ddcc3002193bbcd5caab64cd1df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f82ae87bcf143405fd986be6ca44a68"><td class="memTemplParams" colspan="2"><a class="anchor" id="a3f82ae87bcf143405fd986be6ca44a68"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:a3f82ae87bcf143405fd986be6ca44a68"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="data__type_8h.html#a7c99d9360fc6cac2762b786e2fb52266">decimal_t</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="data__utils_8h.html#a3f82ae87bcf143405fd986be6ca44a68">total_distance</a> (const <a class="el" href="data__type_8h.html#a30c607180de5bc1b7c30f5cbaf9b188b">vec_E</a>&lt; T &gt; &amp;vs)</td></tr>
<tr class="memdesc:a3f82ae87bcf143405fd986be6ca44a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template for calculating distance. <br /></td></tr>
<tr class="separator:a3f82ae87bcf143405fd986be6ca44a68"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Provide a few widely used function for basic type. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
